<?php 
include '../data/data.php';
$user=$_SESSION['user']; //获取到的用户名
$pass=$_SESSION['pass']; //获取到的密码
$gid=intval($_GET['info_id']);
$result= mysql_query("SELECT * FROM info WHERE id='$gid' and userid LIKE '%$dl%'", $link);  
$row = mysql_fetch_array($result);
$resultcz= mysql_query("SELECT * FROM games WHERE id='$row[gameid]'", $link);  
$rowcz = mysql_fetch_array($resultcz);
if($row[id]!=''){
}else{
	header('location:/index.html');
}
mysql_query("UPDATE info SET renqi=renqi+'1' WHERE id='$row[id]'", $link);
?>
<html><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="screen-orientation" content="portrait">
<meta name="keywords" content=" H5 HTML5 H5游戏 HTML5游戏 小游戏 手机游戏 网页游戏 在线游戏 点击即玩 <?php echo $rowx[name]; ?> <?php echo $rowx[name]; ?> 资讯 新闻 攻略 视频 ">
<meta name="description" content="<?php echo $rowx[name]; ?>是一个行业领先的H5在线游戏平台，玩游戏不再苦苦的等待下载，点击即玩。">
<title><?php echo $row[name] ?> - <?php echo $rowx[name]; ?>游戏资讯</title>
<link rel="stylesheet" href="/public/styles/base.css">
<link rel="stylesheet" href="/styles/synthssize.css">
    <link rel="stylesheet" href="/css/new.css">
    <link rel="stylesheet" href="/styles/ranking.css">
</head>
<body class="bg00">
<div class="gnod">
    <div class="gokb">
                    <a target="_top" href="/index.html">
                <img src="/images/user_center/default_img.png" alt="">
            </a>
            </div>
    <div class="search newser">
        <input type="text" id="search_ipt" placeholder="请输入搜索内容" autocomplete="on" class="left_input">
        <input type="submit" id="search_btn" class="search_icon" value="">
    </div>
</div>
<!--div.container 总外框  start-->
<div style="width: 100%;height: 1px;background: #f4f4f4;"></div>
<div data-role="page" class="z_container news bg01">
<?php if($row['gameid']==''){

}else{
?>
              <section class="game_news" style="padding: 5px 10px;">
            <section class="game_list">
                <div>
                    <section class="list_content">
                        <div class="game_log relative">
                            <a target="_top" href="/game/detail.html?game_id=<?php echo $rowcz[id]; ?>"><img src="<?php echo $rowcz[logo]; ?>" width="100%" height="auto" alt="<?php echo $rowcz[name]; ?>"></a>
                        </div>
                        <div class="game_info">
                            <h3>
                                <span class="hidden"><a target="_top" href="/game/detail.html?game_id=<?php echo $rowcz[id]; ?>" title="<?php echo $rowcz[name]; ?>" style="color:#333333;"><?php echo $rowcz[name]; ?></a></span>
                            </h3>
                            <p style="color: #666666;font-weight: 500;margin: 5px 0;">
                                <span style="margin-left: 0;" class="start_list fl">
                                    简介:<?php echo $rowcz[jianjie]; ?>                                </span>
                            </p>
                            <p style="color: #666666;font-weight: 500;"> <span style="color: #FF0000;"><?php echo $rowcz[renqi]; ?></span><span style="margin-left: 0;">人气:</span>
                                                                    类型：<?php echo $rowcz[type]; ?>                                                            </p>
                        </div>
                        <div class="game_btn">
                                                            <a target="_top" onclick="countDownload(this,100)" style="background: #5398FD;" href="/game/detail.html?game_id=<?php echo $rowcz[id]; ?>" class="btn_blue">查看详情</a>
                                                    </div>
                    </section>&gt;
                </div>
            </section>
        </section>
  <?php
} ?>
        <!--div.z_min 内容区域 statr-->
    <div style="width: 100%;height: 8px;background: #f4f4f4;"></div>
    <div class="z_main">
        <h2 style="font-size: 18px;font-weight: bold;color: #333333;text-align: center"><?php echo $row[name] ?></h2>
        <p style="font-size: 12px;font-weight: 500;color: #999999;text-align: center"><?php echo $row[date] ?></p>
        <article class="block_bg info-content">
    <p><?php echo $row[text] ?></p>
      </article>
        <div class="footer_padding"></div>
    </div>

    <!--div.z_min 内容区域 end-->
</div>
<!--div.container 总外框  end-->
<!--footer 底部 start-->
<footer id="footer" class="z_footer" style="">
    <nav>
        <a target="_top" href="/index.html" style="margin-left: 2%;" >
            <p class="img_1"><img src="/picture/home.png" alt=""></p>
            <p class="img_2"><img src="/picture/home1.png" alt=""></p>
            <span>首页</span>
        </a>
        <a target="_top" href="/game/type.html?tc=GM" >
            <p class="img_1"><img src="/picture/game.png" alt=""></p>
            <p class="img_2"><img src="/picture/game1.png" alt=""></p>
            <span>GM</span>
        </a>
        <a target="_top" href="/game/game.html?tc=rm" title="">
            <p class="img_1"><img src="/picture/game.png" alt=""></p>
            <p class="img_2"><img src="/picture/game1.png" alt=""></p>
            <span>BT</span>
        </a>
        <a target="_top" href="/user/user.html" title="">
            <p class="img_1"><img src="/picture/user.png" alt=""></p>
            <p class="img_2"><img src="/picture/user1.png" alt=""></p>
            <span>我的</span>
        </a>
    </nav>
</footer>
<link href="/css/app.css" rel="stylesheet" type="text/css">
<div id="weixin_an" style="display: none">
    <div class="click_opacity"></div>
    <div class="to_btn">
        <span class="span1"><img src="/public/channel/click_btn.png"></span>
        <span class="span2"><em>1</em> 点击右上角<img src="/public/channel/menu_android.png">打开菜单</span>
        <span class="span2 android_open"><em>2</em> 选择<img src="/public/channel/android.png"></span>
        <span class="span2 android_open"><em>3</em> 重新登录账号充值</span>
    </div>
</div>

<!--二维码-->
<script src="/public/scripts/jquery-1.11.1.min.js"></script>
<script src="/public/scripts/jquery.qrcode.min.js"></script>

<!--<div class="qrcode_image">-->
<!--        <img src="/qrcode/game.html?addr=--><!--">-->
<!--</div>-->

<script src="/public/scripts/jquery-1.11.1.min.js"></script>
      <script>
        $('#search_btn').on('tap', function(){
            var v = $.trim($('#search_ipt').val());
            v = v.replace(/[\'\"\?`~\!\$\%\^\*\(\)\[\]\{\}\-\+\\]+/, '');
            $('#search_ipt').val(v);
            if( v == '' ) {
                alert('请输入游戏名称、拼音或关键字！');
                $('#search_ipt').focus();
                return false;
            }
            location.href = '/search.html?search='+ encodeURIComponent(v);
        });
        $('#search_ipt').bind('keydown',function(event){
            if(event.keyCode == "13") {
                var v = $.trim($('#search_ipt').val());
                v = v.replace(/[\'\"\?`~\!\$\%\^\*\(\)\[\]\{\}\-\+\\]+/, '');
                $('#search_ipt').val(v);
                if( v == '' ) {
                    alert('请输入游戏名称、拼音或关键字！');
                    $('#search_ipt').focus();
                    return false;
                }
                location.href = '/search.html?search='+ encodeURIComponent(v);
            }
        });
    </script>
</body></html>